package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_GFS_FILE"
 *     
*/
public class CcpGfsFile implements Serializable {

    /** identifier field */
    private String cgfGuid;

    /** nullable persistent field */
    private String cgfName;

    /** nullable persistent field */
    private String suffix;

    /** nullable persistent field */
    private String inputDate;

    /** nullable persistent field */
    private String cgcGuid;

    /** nullable persistent field */
    private String businessCode;

    /** nullable persistent field */
    private String fileSize;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpGfsFile(String cgfGuid, String cgfName, String suffix, String inputDate, String cgcGuid, String businessCode, String fileSize, String reserved1, String reserved2, String reserved3) {
        this.cgfGuid = cgfGuid;
        this.cgfName = cgfName;
        this.suffix = suffix;
        this.inputDate = inputDate;
        this.cgcGuid = cgcGuid;
        this.businessCode = businessCode;
        this.fileSize = fileSize;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpGfsFile() {
    }

    /** minimal constructor */
    public CcpGfsFile(String cgfGuid) {
        this.cgfGuid = cgfGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CGF_GUID"
     *         
     */
    public String getCgfGuid() {
        return this.cgfGuid;
    }

    public void setCgfGuid(String cgfGuid) {
        this.cgfGuid = cgfGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CGF_NAME"
     *             length="100"
     *         
     */
    public String getCgfName() {
        return this.cgfName;
    }

    public void setCgfName(String cgfName) {
        this.cgfName = cgfName;
    }

    /** 
     *            @hibernate.property
     *             column="SUFFIX"
     *             length="30"
     *         
     */
    public String getSuffix() {
        return this.suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    /** 
     *            @hibernate.property
     *             column="INPUT_DATE"
     *             length="18"
     *         
     */
    public String getInputDate() {
        return this.inputDate;
    }

    public void setInputDate(String inputDate) {
        this.inputDate = inputDate;
    }

    /** 
     *            @hibernate.property
     *             column="CGC_GUID"
     *             length="32"
     *         
     */
    public String getCgcGuid() {
        return this.cgcGuid;
    }

    public void setCgcGuid(String cgcGuid) {
        this.cgcGuid = cgcGuid;
    }

    /** 
     *            @hibernate.property
     *             column="BUSINESS_CODE"
     *             length="32"
     *         
     */
    public String getBusinessCode() {
        return this.businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    /** 
     *            @hibernate.property
     *             column="FILE_SIZE"
     *             length="50"
     *         
     */
    public String getFileSize() {
        return this.fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="50"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="50"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cgfGuid", getCgfGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpGfsFile) ) return false;
        CcpGfsFile castOther = (CcpGfsFile) other;
        return new EqualsBuilder()
            .append(this.getCgfGuid(), castOther.getCgfGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCgfGuid())
            .toHashCode();
    }

}
